import { USER, status_background_color, set_isConversation, set_conversationOffer, set_webRtcData } from './actionTypes';

// 修改用户信息
export const setUser = (value: any) => {
  return { type: USER, value };
};

// 修改状态栏背景颜色
export const setStatusBackgroundColor = (value: string) => {
  return { type: status_background_color, value };
};

// 设置是否显示通话组件
export const setIsConversation = (value: Boolean) => {
  return { type: set_isConversation, value };
};

// 设置是否是本人发起通话
export const setConversationOffer = (value: Boolean) => {
  return { type: set_conversationOffer, value };
};

// 设置webrtc用到的数据;
export const setWebRtcData = (value: any) => {
  return { type: set_webRtcData, value };
};
